# -*- coding: utf-8 -*-

from django.db import models
from core.models import CoreModel, table_prefix


class Config(CoreModel):
    name = models.CharField(default="", max_length=100, verbose_name="参数名称")
    key = models.CharField(default="", max_length=100, verbose_name="参数键名")
    value = models.CharField(default="", max_length=50, verbose_name="参数键值")
    type = models.CharField(default="", max_length=50, verbose_name="系统内置")

    class Meta:
        db_table = table_prefix + "system_config"
        verbose_name = "配置管理"
        verbose_name_plural = verbose_name
        ordering = ("id",)
